package com.haiyou.dc.mq.mapper;

import com.haiyou.common.base.BaseMapper;
import com.haiyou.dc.mq.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author root
 * @date 2020-01-11 22:23:44
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    /**
     * 更新产品库存
     *
     * @param productNo
     */
    Integer updateProduct(@Param("productNo") String productNo);

    /**
     * 更新产品
     *
     * @param id
     * @return
     */
    Product selectProduct(@Param("id") int id);
}